package cn.it.ygh.service;

import java.util.List;

import org.springframework.dao.DataIntegrityViolationException;

import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException;

import cn.it.ygh.pojo.User;

public interface UserManageService {
	
	public User getUserById(int userId);
	
	public List<User> getAllUser();
	
	public void deleteUser(int userId) throws DataIntegrityViolationException;
	
	public void modifyUser(User user);
	
	public void addUser(User user);
	
	public void batchdeleteUser(int[] ids);
	
	public List<User> findUser(String key);
	
	public List<User> getPageData(int pageStart,int pageSize,String key);
	
	public int getTotalRecord(String key);

}
